const Mock = require('mockjs')
const Random = Mock.Random
/**
 * 获取页面数据
 */
module.exports = (params) => {
  const data = {
    code: '0',
    msg: 'success',
    data: {
      cardList: {
        list: [
          {
            id: 1,
            src: '//img10.360buyimg.com/n2/s240x240_jfs/t1/210890/22/4728/163829/6163a590Eb7c6f4b5/6390526d49791cb9.jpg!q70.jpg',
            title: Random.csentence(),
            price: Random.float(60, 1000, 2, 2),
            vipPrice: Random.float(60, 1000, 2, 2),
            shopDescription: Random.cword(2, 4),
            delivery: Random.cword(2, 5),
            shopName: Random.cword(7, 14),
          },
          {
            id: 2,
            src: '//img10.360buyimg.com/n2/s240x240_jfs/t1/210890/22/4728/163829/6163a590Eb7c6f4b5/6390526d49791cb9.jpg!q70.jpg',
            title: Random.csentence(),
            price: Random.float(60, 1000, 2, 2),
            vipPrice: Random.float(60, 1000, 2, 2),
            shopDescription: Random.cword(2, 4),
            delivery: Random.cword(2, 5),
            shopName: Random.cword(7, 14),
          },
          {
            id: 3,
            src: '//img10.360buyimg.com/n2/s240x240_jfs/t1/210890/22/4728/163829/6163a590Eb7c6f4b5/6390526d49791cb9.jpg!q70.jpg',
            title: Random.csentence(),
            price: Random.float(60, 1000, 2, 2),
            vipPrice: Random.float(60, 1000, 2, 2),
            shopDescription: Random.cword(2, 4),
            delivery: Random.cword(2, 5),
            shopName: Random.cword(7, 14),
          },
        ],
      },
    },
  }
  return data
}
